// pages/chart/chart.js

Page({
  data: {
    pictureFuns: [{
      name: '微信运动',
      url: "./we-run/we-run",
      color: '#809294'
    }, {
      name: '肺炎疫情图表',
      url: "./covid-19/covid-19",
      color: ''
    }, {
      name: '景区数据图表',
      url: "./tourist/tourist",
      color: ''
    }, {
      name: 'f2-canvas图表测试',
      url: "./f2-canvas-load/f2-canvas-load",
      color: 'lightgray'
    }]
  },
  onLoad: function (options) {
    var onling = getApp().globalData.onling
    if (onling)
      this.setData({
        pictureFuns: []
      })
  },
  //图片功能按钮点击监听
  pictureFunClick(e) {
    console.log(e)
    var url = e.currentTarget.dataset.url
    wx.navigateTo({
      url: url
    })
  },
})